package com.yanxu.proxy.db;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/4/15-2025
 * @Description: 数据源上下文
 */
public class DataSourceContext {
    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void set(String key) {
        threadLocal.set(key);
    }

    public static String get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}